<template>
  <div>
    <div class="header">
      <div class="nav">
        <span class="nav1">
          <span class="nav1-l"></span>
          <span>广告列表</span>
        </span>
        <el-button class="nav2" @click="refresh()" size="small">
          <i class="el-icon-refresh"></i>
          <span>刷新</span>
        </el-button>
      </div>
    </div>

    <div class="big_box">
      <div class="screen">
        <i class="el-icon-search"></i>
        <span class="text">筛选查询</span>
      </div>
      <div class="screen-r">
        <i :class="isPackUp ? 'el-icon-arrow-down' : 'el-icon-arrow-up'" @click="pack_up()"></i>
        <span v-text="!isPackUp ? '展开筛选' : '收起筛选'" class="fewer"></span>
        <el-button size="small">查询结果</el-button>
      </div>
    </div>

    <div class="box1" :style="isPackUp ? 'height:70px' : 'height: 0'">
      <el-form :inline="true" class="demo-form-inline">
        <el-form-item label="广告名称:">
          <el-input placeholder="广告名称" :style="'width:150px'"></el-input>
        </el-form-item>
        <el-form-item label="广告位置:">
          <el-select placeholder="广告位置" :style="'width:150px'">
            <el-option label="区域二"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="到期时间:">
          <el-select placeholder="全部" :style="'width:150px'">
            <el-option label="区域二"></el-option>
          </el-select>
        </el-form-item>
      </el-form>
    </div>

    <div class="box-card">
      <div class="list_data_l">
        <i class="el-icon-s-operation icon"></i>
        <span class="dataList">数据列表</span>
      </div>
      <div class="list_data_r">
        <el-button size="small" @click="Advertising()">添加广告</el-button>
        <el-select disabled placeholder="显示条数" size="small" :style="'width: 100px'" class="row">
          <el-option></el-option>
        </el-select>
        <el-select disabled placeholder="排序方式" size="small" :style="'width: 100px'">
          <el-option></el-option>
        </el-select>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isPackUp: true
    }
  },
  methods: {
    refresh() {},
    pack_up() {
      this.isPackUp = !this.isPackUp
    },
    Advertising() {
      this.$router.push('/runs/Advertising')
    }
  }
}
</script>

<style lang="less" scoped>
.header {
  position: relative;
  width: 100%;
  height: 50px;
  background-color: #f3f3f3;
  border-bottom: 1px solid #eee;
  .nav {
    .nav1 {
      position: absolute;
      left: 120px;
      top: 25%;
      color: #af9999;
      .nav1-l {
        border-left: 3px solid #039aff;
        margin-right: 5px;
      }
    }
    .nav2 {
      position: absolute;
      right: 120px;
      top: 20%;
    }
  }
}
.big_box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1135px;
  height: 50px;
  background-color: #f3f3f3;
  margin: 20px 120px 0 120px;
  border: 1px solid #eee;
  .screen {
    margin: 0 10px;
    .text {
      font-size: 12px;
      margin-left: 5px;
      color: #af9999;
    }
  }
  .screen-r {
    margin-right: 10px;
    .fewer {
      color: #af9999;
      font-size: 12px;
      margin: 0 5px;
    }
  }
}
.box1 {
  overflow: hidden;
  width: 1135px;
  height: 70px;
  border: 1px solid #eee;
  margin: 0 120px;
  .demo-form-inline {
    margin: 10px;
  }
}
.box-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1135px;
  height: 50px;
  margin: 20px 120px 0 120px;
  background-color: #f3f3f3;
  .list_data_l {
    margin-left: 10px;
    font-size: 20px;
    .dataList {
      font-size: 14px;
      color: #666666;
    }
  }
  .list_data_r {
    .el-select {
      margin: 0 5px;
    }
  }
}
</style>
